update_harness
async
¶
update_harness(
harness_id: HarnessId,
*,
config_overrides: Optional[AsyncBedrockAgentCoreControlClientConfig] = None,
client_token: Optional[ClientToken] = None,
execution_role_arn: Optional[RoleArn] = None,
environment: Optional[HarnessEnvironmentProviderRequest] = None,
environment_artifact: Optional[UpdatedHarnessEnvironmentArtifact] = None,
environment_variables: Optional[EnvironmentVariablesMap] = None,
authorizer_configuration: Optional[UpdatedAuthorizerConfiguration] = None,
model: Optional[HarnessModelConfiguration] = None,
system_prompt: Optional[HarnessSystemPrompt] = None,
tools: Optional[HarnessTools] = None,
skills: Optional[HarnessSkills] = None,
allowed_tools: Optional[HarnessAllowedTools] = None,
memory: Optional[UpdatedHarnessMemoryConfiguration] = None,
truncation: Optional[HarnessTruncationConfiguration] = None,
hooks: Optional[HarnessHooks] = None,
max_iterations: Optional[int] = None,
max_tokens: Optional[int] = None,
timeout_seconds: Optional[int] = None,
) -> UpdateHarnessResponse
Operation to update a harness.
Parameters:
-
harness_id(HarnessId) –The ID of the harness to update.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier to ensure idempotency of the request.
-
execution_role_arn(Optional[RoleArn], default:None) –The ARN of the IAM role that the harness assumes when running. If not specified, the existing value is retained.
-
environment(Optional[HarnessEnvironmentProviderRequest], default:None) –The compute environment configuration for the harness. If not specified, the existing value is retained.
-
environment_artifact(Optional[UpdatedHarnessEnvironmentArtifact], default:None) –The environment artifact for the harness. Use the optionalValue wrapper to set a new value, or set it to null to clear the existing configuration.
-
environment_variables(Optional[EnvironmentVariablesMap], default:None) –Environment variables to set in the harness runtime environment. If specified, this replaces all existing environment variables. If not specified, the existing value is retained.
-
model(Optional[HarnessModelConfiguration], default:None) –The model configuration for the harness. If not specified, the existing value is retained.
-
system_prompt(Optional[HarnessSystemPrompt], default:None) –The system prompt that defines the agent's behavior. If not specified, the existing value is retained.
-
tools(Optional[HarnessTools], default:None) –The tools available to the agent. If specified, this replaces all existing tools. If not specified, the existing value is retained.
-
skills(Optional[HarnessSkills], default:None) –The skills available to the agent. If specified, this replaces all existing skills. If not specified, the existing value is retained.
-
allowed_tools(Optional[HarnessAllowedTools], default:None) –The tools that the agent is allowed to use. If specified, this replaces all existing allowed tools. If not specified, the existing value is retained.
-
memory(Optional[UpdatedHarnessMemoryConfiguration], default:None) –The AgentCore Memory configuration. Use the optionalValue wrapper to set a new value, or set it to null to clear the existing configuration.
-
truncation(Optional[HarnessTruncationConfiguration], default:None) –The truncation configuration for managing conversation context. If not specified, the existing value is retained.
-
hooks(Optional[HarnessHooks], default:None) –The lifecycle hooks to run at defined points in the agent loop. If specified, this replaces all existing hooks. If not specified, the existing hooks are retained.
-
max_iterations(Optional[int], default:None) –The maximum number of iterations the agent loop can execute per invocation. If not specified, the existing value is retained.
-
max_tokens(Optional[int], default:None) –The maximum total number of output tokens the agent can generate across all model calls within a single invocation. If not specified, the existing value is retained.
-
timeout_seconds(Optional[int], default:None) –The maximum duration in seconds for the agent loop execution per invocation. If not specified, the existing value is retained.
Raises:
-
AccessDeniedException–This exception is thrown when a request is denied per access permissions
-
ConflictException–This exception is thrown when there is a conflict performing an operation
-
InternalServerException–This exception is thrown if there was an unexpected error during processing of request
-
ResourceNotFoundException–This exception is thrown when a resource referenced by the operation does not exist
-
ServiceQuotaExceededException–This exception is thrown when a request is made beyond the service quota
-
ThrottlingException–This exception is thrown when the number of requests exceeds the limit
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore_control/_services/async_bedrock_agent_core_control.py
8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 | |