HttpTarget.
Basic Configuration
TheHttpTarget class requires a few essential parameters to work:
Key Parameters
url: The endpoint URL for the LLM APIheaders: HTTP headers to include in requestspayload_config: Configuration for request payload formattingconcatenate_field: Path to extract the response content from the JSON response
Validate Configuration
To verify that your HttpTarget is properly configured and working, you can test it with a simple message:- Send a simple “Hello World” message to your configured endpoint
- Print the response if successful
- Raise an exception if there are any configuration issues
Advanced Configuration
Token Authentication
For APIs that require token-based authentication on request, you can use theTokenConfig: